package com.tuanzi.loan.business.repository.system;

import java.util.List;

import com.tuanzi.loan.business.entity.system.Dictionary;
import com.tuanzi.loan.business.repository.system.custom.DictionaryRepositoryCustom;
import com.tuanzi.loan.core.repository.JPABaseRepository;

/**
 * @author Ray 2017/09/21
 */
public interface DictionaryRepository extends DictionaryRepositoryCustom, JPABaseRepository<Dictionary, String> {

	List<Dictionary> findAllByCodeAndEnableTrueOrderBySort(String code);

	Dictionary findByCodeAndNameAndEnableTrue(String code, String name);
	
	Dictionary findByCodeAndValue1(String code, String value1);

}
